#ifndef __DATASTORE_H__
#define __DATASTORE_H__
#include <stdint.h>
#include <server_conf.h>
#include <nodelist.h>

//客户端上报数据包解析结构体
struct storeDataType
{
	char relay1;
	char relay2;
	char relay3;
	char relay4;
};

//客户端查询结构体
struct queryDataType
{
	char queryId[IDSIZE];
	unsigned short queryCount;
};

int storeDataToSQL(PT_nodeList me, void *data, int dataLenth);
int queryDataFromSQL(PT_nodeList me, void *data, int dataLenth);

#endif

